package mlc.om.upgrade.engine;

import mlc.Constants;
import mlc.om.upgrade.Upgrade;

public class Engine extends Upgrade implements EngineInterface {

	private double speedLimit = 0;
	private double minimalConsumption = 0;
	private double workingConsumption = 0;
	
	public Engine(double speedLimit, double minimalConsumption, double workingConsumption, int price, String name, String description) {
		super(price, name, description, "Engine");
		this.speedLimit = speedLimit;
		this.minimalConsumption = minimalConsumption;
		this.workingConsumption = workingConsumption;
	}

	public double getMinimalConsumption() {
		return this.minimalConsumption;
	}

	public double getSpeedIncrease() {
		return this.speedLimit/Constants.engineSpeedStepsCount;
	}

	public double getSpeedLimit() {
		return this.speedLimit;
	}

	public double getWorkingConsumption() {
		return workingConsumption;
	}
}
